﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Filter.ascx.cs" Inherits="Filter" %>
<link href="StyleSheet.css" rel="stylesheet" type="text/css" />
<div style="width: 200px;">
    <div style="color: #FFFFFF; font-weight: bolder; font-family: tahoma; font-size: small;
        text-align: center; background-image: url('Pictures/Background/title_left.jpg');
        background-repeat: no-repeat; height: 36px;">
        <br />
        TÌM KIẾM NHANH
    </div>
    <table class="backgroundtable" style="vertical-align: top;" width="200px" border="0"
        cellpadding="0" cellspacing="0">
        <tbody>
            <tr style="height: 30px;">
                <td align="left">
                    &nbsp;&nbsp;Từ khóa
                </td>
                <td>
                    <asp:TextBox ID="txtTenXe" runat="server" Width="100px" Height="20px"></asp:TextBox>
                </td>
            </tr>
            <tr style="height: 30px">
                <td align="left">
                    &nbsp;&nbsp;Hãng xe
                </td>
                <td>
                    <asp:DropDownList ID="cmbHangxe" runat="server" Height="25px" Width="100px" OnSelectedIndexChanged="cmbHangxe_SelectedIndexChanged"
                        AutoPostBack="true">
                        <asp:ListItem>Tất cả</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr style="height: 30px">
                <td align="left">
                    &nbsp;&nbsp;Model
                </td>
                <td>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <asp:DropDownList ID="cmbModel" runat="server" Height="25px" Width="100px">
                                <asp:ListItem>Tất cả</asp:ListItem>
                            </asp:DropDownList>
                        </ContentTemplate>
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="cmbHangXe" EventName="SelectedIndexChanged" />
                        </Triggers>
                    </asp:UpdatePanel>
                </td>
            </tr>
            <tr style="height: 30px">
                <td align="left">
                    &nbsp;&nbsp;Tình Trạng
                </td>
                <td>
                    <asp:DropDownList ID="cmbTinhTrang" runat="server" Height="25px" Width="100px">
                        <asp:ListItem>Tất cả</asp:ListItem>
                        <asp:ListItem>Mới</asp:ListItem>
                        <asp:ListItem>Đã qua sử dụng</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr style="height: 30px">
                <td align="left">
                    &nbsp;&nbsp;Năm sản<br />
                    &nbsp; xuất
                </td>
                <td>
                    <asp:DropDownList ID="cmbYear" runat="server" Height="25px" Width="100px">
                        <asp:ListItem>Tất cả</asp:ListItem>
                        <asp:ListItem>2001</asp:ListItem>
                        <asp:ListItem>2002</asp:ListItem>
                        <asp:ListItem>2003</asp:ListItem>
                        <asp:ListItem>2004</asp:ListItem>
                        <asp:ListItem>2005</asp:ListItem>
                        <asp:ListItem>2006</asp:ListItem>
                        <asp:ListItem>2007</asp:ListItem>
                        <asp:ListItem>2008</asp:ListItem>
                        <asp:ListItem>2009</asp:ListItem>
                        <asp:ListItem>2010</asp:ListItem>
                        <asp:ListItem>2011</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr style="height: 30px">
                <td align="center" colspan="2">
                    <asp:Button ID="btnTim" runat="server" Text="Tìm" Width="80px" 
                        onclick="btnTim_Click" />
                </td>
            </tr>
        </tbody>
    </table>
    <div style="background-image: url('Pictures/Background/category_bot.jpg'); background-repeat: no-repeat;
        height: 8px">
    </div>
</div>
